export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  viewBtn: false,
  searchMenuSpan: 6,
  menu: false,
  addBtn: false,
  column: [
    {
      label: '编号',
      prop: 'id',
      hide: true,
      addDisplay: false
    },
    {
      label: '应用名称',
      prop: 'appName',
      overHidden: true,
      addDisplay: false
    },
    {
      label: '应用描述',
      prop: 'appDesc',
      overHidden: true,
      addDisplay: false
    },
    {
      label: '组件名称',
      prop: 'componentName',
      search: true,
      overHidden: true,
      addDisplay: false
    },
    {
      label: '类型',
      prop: 'componentType',
      hide: true,
      overHidden: true,
      addDisplay: false
    },
    {
      type: 'select',
      label: '组件级别',
      prop: 'componentLevel',
      search: true,
      dicData: [
        {
          label: '平台',
          value: 0
        }, {
          label: '银行',
          value: 1
        }, {
          label: '项目',
          value: 2
        }, {
          label: '系统内置',
          value: 9
        }
      ],
      overHidden: true,
      addDisplay: false
    },
    {
      label: '数量',
      prop: 'count',
      overHidden: true,
      addDisplay: false
    },
    {
      label: '上报时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      // valueFormat: 'yyyy-MM-dd HH:mm:ss',
      editDisplay: false,
      addDisplay: false,
      span: 24
    }
  ]
}


export const scaOption = {
  page: false,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menu: false,
  addBtn: false,
  align: 'center',
  column: [
    {
      label: '服务名',
      prop: 'serviceId',
    },
    {
      label: 'IP地址',
      prop: 'host',
    },
    {
      label: '端口',
      prop: 'port',
    },
    {
      label: '健康状态',
      prop: 'healthy',
    },
    {
      label: '平台名称',
      prop: 'scaName',
    },
  ]
}

export const skillOption = {
  page: false,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  searchMenuSpan: 6,
  menu: false,
  addBtn: false,
  align: 'center',
  column: [
    {
      label: '服务名称',
      prop: 'serviceName',
      search: true,
      hide: true,
      type: 'select',
      dicUrl: '/admin/statistic/nacosClientList',
      props: {
        label: 'serviceId',
        value: 'serviceId'
      },
    },
    {
      label: '组件标识',
      prop: 'artifactId',
    },
    {
      label: '中文名称',
      prop: 'name',
    },
    {
      label: '组件描述',
      prop: 'desc',

    },
  ]
}
